package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;


import java.util.List;

public interface UserService {
    public User findByUsername(String username);

    public void add(User user, Integer[] roleIds);
    public PageResult findPage(QueryPageBean pageBean);
    public User findById(Integer id);
    public void edit(User user, Integer[] roleIds);
    public List<User> findAll();

    void deleteById(Integer id);

    Boolean deleteMor(Integer[] userIds);

    List<Integer> findRoleIdsByUserId(Integer roleId);
}
